package com.authService.convert;

import com.authService.entity.SysRoleEntity;
import com.authService.pojo.req.RoleSaveReqDTO;
import com.authService.pojo.res.RoleDetialResDTO;
import org.mapstruct.factory.Mappers;

public interface RoleConvert {

    public static final RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    /**
     * 详情响应体 Entity 转 DTO
     * @param sysRoleEntity
     * @return
     */
    RoleDetialResDTO detailConvert(SysRoleEntity sysRoleEntity);

    /**
     * 保存请求参数 DTO 转 Entity
     * @param reqDTO
     * @return
     */
    SysRoleEntity saveReqDTOConvert(RoleSaveReqDTO reqDTO);
}
